package liuhe.thread;

import liuhe.manager.GutongManager;

public class GutongThread extends Thread {

	public long sleepTime = 30*1000;
	GutongManager gutongmanager = null;
	
	boolean start = false;
	boolean loginNow = false;
	
	
	boolean bexit = false;
	
	public boolean getbexit() {
		return bexit;
	}

	public GutongThread(){
		gutongmanager = new GutongManager();
		gutongmanager.init();
	}
	
	
	@Override
    public void run() {

		try{

			while(true){
				try{
					gutongmanager.login();
					gutongmanager.getActualData();
					gutongmanager.getOldActualData();
					//todo ˯��ʱ�����
					//Thread.sleep(3000);					
				}catch(Exception e){
					e.printStackTrace();
					Thread.sleep(2000);
				}
				

			}

		}catch(Exception e){
			e.printStackTrace();
		}	
	}
	
}
